package com.jy.oms.framework.asyn.task.model;

/**
 * 任务执行超过最大重试次数时参数
 *
 * @author liuquan
 */
public class TaskExceedRetryMaxNumDto<P> {

    /**
     * 任务编码
     */
    private String taskCode;

    /**
     * 任务参数
     */
    private P param;

    /**
     * 任务关联单号
     */
    private String billNo;

    /**
     * 任务uuid标识，DB模式下可根据uuid查询sys_task_queue
     */
    private String uuid;

    /**
     * 异常类型，1业务异常，2系统异常
     */
    private Integer exceptionType;

    private String exceptionTitle;

    public String getTaskCode() {
        return taskCode;
    }

    public TaskExceedRetryMaxNumDto<P> setTaskCode(String taskCode) {
        this.taskCode = taskCode;
        return this;
    }

    public P getParam() {
        return param;
    }

    public TaskExceedRetryMaxNumDto<P> setParam(P param) {
        this.param = param;
        return this;
    }

    public String getBillNo() {
        return billNo;
    }

    public TaskExceedRetryMaxNumDto<P> setBillNo(String billNo) {
        this.billNo = billNo;
        return this;
    }

    public String getUuid() {
        return uuid;
    }

    public TaskExceedRetryMaxNumDto<P> setUuid(String uuid) {
        this.uuid = uuid;
        return this;
    }

    public Integer getExceptionType() {
        return exceptionType;
    }

    public TaskExceedRetryMaxNumDto<P> setExceptionType(Integer exceptionType) {
        this.exceptionType = exceptionType;
        return this;
    }

    public String getExceptionTitle() {
        return exceptionTitle;
    }

    public TaskExceedRetryMaxNumDto<P> setExceptionTitle(String exceptionTitle) {
        this.exceptionTitle = exceptionTitle;
        return this;
    }
}
